import { createRouter, RouteRecordRaw, createWebHistory, createWebHashHistory } from 'vue-router'
import Home from '~/views/Home/index.vue'
import Page from '~/views/Page/index.vue'
import Abort from '~/views/Abort/index.vue'
import Log from '~/views/Log/index.vue'


const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Page',
    component: Page,
    children: [
      {
        path: 'home',
        component: Home
      },
      {
        path: 'abort',
        component: Abort
      },
      {
        path: 'log',
        component: Log
      }
    ]
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
